import axios from '@/api/interceptor'
import {FileUploadRes} from "@/types/fileType";

export function mdToPDFAPI(data: string): Promise<FileUploadRes> {
  return axios.post(`api/v1/sapper/plugin/custom/markdown_2_pdf`, {"content": data});
}

export function mdToImageAPI(data: string): Promise<FileUploadRes> {
  return axios.post(`api/v1/sapper/plugin/custom/markdown_2_image`, {"content": data});
}

export function mdToDocxAPI(data: string): Promise<FileUploadRes> {
  return axios.post(`api/v1/sapper/plugin/custom/markdown_2_docx`, {"content": data});
}

